<template>
  <div>
    <h1>grandson</h1>
  </div>
</template>

<script>
export default {
  name: "GrandSon",
  props: [""],
  data() {
    return {
      aaa: "grandson"
    };
  },
  // 注入  字符串的数组
  inject: ["msg", "global", "obj"],
  components: {},

  computed: {},

  beforeMount() {},

  mounted() {
    //调用时通过this.属性名
    console.log(this.msg);
    console.log(this.global);
    console.log(this.obj.age);
    // this.msg = "下雨了！！";
    this.obj.age = 60;
    console.log(this.obj.age);
  },

  methods: {},
  watch: {}
};
</script>
<style lang='' scoped>
</style>